Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitter: Hide all ads | |
// @namespace Violentmonkey Scripts | |
// @match https://x.com/* | |
// @grant none | |
// @version 1.0 | |
// @author @weijarz | |
// @description 7/5/2023, 9:31:41 PM | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################### | |
### INSTRUCTIONS ### | |
#################### | |
# 1. To speed up things, switch to bt mode and select the right channel (it will make things easier in the next steps) | |
# 2. Switch back to USB mode (so that you can actually enter commands) | |
# 3. Run this script and then quickly switch to bt mode and once the blinking stops hold FN + the corresponding bt channel; | |
# for instance, I have paired it with Windows on channel 1, and on Linux on channel 2, so in my case it's FN + 2. Release it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TweetXer | |
// @namespace https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16/ | |
// @version 0.5 | |
// @description Delete all your Tweets for free. | |
// @author Luca | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?domain=twitter.com | |
// @grant unsafeWindow | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas_datareader as pdr | |
import pandas as pd | |
import numpy as np | |
from sklearn import linear_model | |
import scipy.stats as st | |
# Collect Data | |
data = pdr.DataReader(["TSLA","^GSPC"], 'yahoo','29-06-2010','01-01-2018') | |
data = data.drop(['High','Low','Open','Volume','Adj Close'], axis=1) | |
returns = data.pct_change(1) * 100 |
NewerOlder